package com.rmi.impl;

import java.util.UUID;

import com.api.IOrderService;
import com.api.req.OrderReq;
import com.api.resp.OrderResp;
import com.rmi.anno.server.RemoteService;
@RemoteService(serviceInterface=IOrderService.class)
public class IOrderServiceImpl implements IOrderService {

	@Override
	public OrderResp save(OrderReq orderReq) {
		return new OrderResp(orderReq.getId()+"-"+orderReq.getName()+"&&"+UUID.randomUUID().toString());
	}

}
